package org.JQbitorrentClinet.request.search;

import lombok.Builder;
import org.JQbitorrentClinet.base.BasePostUrlEncodedParam;
import org.JQbitorrentClinet.pojo.search.SearchJob;

@Builder
public class StartSearchParam extends BasePostUrlEncodedParam {
    String pattern;
    String[] plugins;
    String category;

    public StartSearchParam(String pattern, String[] plugins, String category) {
        this.pattern = pattern;
        this.plugins = plugins;
        this.category = category;
        responseType = SearchJob.class;
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/search/start";
    }
}
